Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-preset-flow

Package Overview
Dependencies
Maintainers
7
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-flow

Babel preset for all Flow plugins.

  • 6.23.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
340K
decreased by-25.61%
Maintainers
7
Weekly downloads
 
Created

What is babel-preset-flow?

The babel-preset-flow npm package is a Babel preset that allows you to strip Flow type annotations from your JavaScript code. This is useful for projects that use Flow for type checking but need to compile the code to plain JavaScript for production.

What are babel-preset-flow's main functionalities?

Stripping Flow Type Annotations

This feature allows you to remove Flow type annotations from your code, making it suitable for production environments where type annotations are not needed.

/* Input: */
// @flow
function add(a: number, b: number): number {
  return a + b;
}

/* Output: */
function add(a, b) {
  return a + b;
}

Other packages similar to babel-preset-flow

Keywords

FAQs

Package last updated on 14 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc